﻿@using Bonesystem.Extensions
@model BoneSystem.Models.CadastroRestModel

<script src="~/Functions/Form/rest_functions.js"></script>

<script type="text/javascript">


</script>


@Html.DevExpress().Ribbon(settings =>
{
    settings.Name = Model.RibbonName;
    settings.ShowFileTab = false;
    settings.Width = Unit.Pixel(Model.DialogWidth);
    settings.ClientSideEvents.Init = Model.FormName + "FormRibbonInit";

    var tabCadastro = settings.Tabs.Add("Operações");

    var groupComands = tabCadastro.Groups.Add("Operações");

    groupComands.Items.Add(RibbonExtensions.CreateButtonItem<RibbonButtonItem>("btnSave", "Salvar", RibbonItemSize.Large, IconID.SaveSave32x32gray));
    groupComands.Items.Add(RibbonExtensions.CreateButtonItem<RibbonButtonItem>("btnDelete", "Excliur", RibbonItemSize.Large, IconID.EditDelete32x32gray));
    groupComands.Items.Add(RibbonExtensions.CreateButtonItem<RibbonButtonItem>("btnExit", "Sair", RibbonItemSize.Large, IconID.ActionsClose32x32));


    
}).GetHtml()
@using (Html.BeginForm(null, null, null, FormMethod.Post, new {id = Model.FormName}))
{
    @Model.PartialForm
}
